package com.twu.biblioteca;

public class UserInformation {
    private String name;
    private String email;
    private String phone;

    public UserInformation(String name, String email, String phone) {
        this.name = name;
        this.email = email;
        this.phone = phone;
    }

    public String getName() {
        return this.name;
    }

    public String getEmailAddress() {
        return this.email;
    }

    public String getPhoneNumber() {
        return this.phone;
    }

    @Override
    public boolean equals(Object other) {
        if (this == other) return true;
        if (this.getClass() != other.getClass()) return false;

        UserInformation information = (UserInformation) other;
        return this.name.equals(information.name)
            && this.email.equals(information.email)
            && this.phone.equals(information.phone);
    }
}
